document.write('<div id="qhxl" style="text-align:center;color:red;font-weight:600;cursor:pointer;" onclick="qhxl()">切换线路');
document.write('<div class="panels" style="display:none;">');
document.write('<a style="" href=\"javascript:ghjx(\'https://api.flvsp.com/?url='+MacPlayer.PlayUrl+'\')\">【路线A】</a>');	
document.write('<a style="" href=\"javascript:ghjx(\'http://65yw.2m.vc/chaojikanx.php?url='+MacPlayer.PlayUrl+'\')\">【路线B】</a>');
document.write('<a style="" href=\"javascript:ghjx(\'https://api.47ks.com/webcloud/?v='+MacPlayer.PlayUrl+'\')\">【路线C】</a>');
document.write('<a style="" href=\"javascript:ghjx(\'https://zz.janch.top/jx.php?url='+MacPlayer.PlayUrl+'\')\">【路线D】</a>');	
document.write('<a style="" href=\"javascript:ghjx(\'http://api.nepian.com/ckparse/?url='+MacPlayer.PlayUrl+'\')\">【路线E】</a>');		
document.write('</div>');
document.write('</div>');
var yx = $('.footer')[0].outerHTML;
window.onload=function(){
	alert('1');
	$('.footer')[0].outerHTML = yx + $('#qhxl')[0].outerHTML + $('.panels')[0].outerHTML;
}



function qhxl(){
    $('.panels').slideToggle('slow');  //如果用了jQuery，此行作废！
}

function ghjx(url){
/* 	var spdz = decodeURIComponent(document.getElementsByTagName('iframe')[0].src.split('=')[1]).replace(/&([^\s]*)|\?([^\s]*)/g,"");
	var jx = url.split('=')[0];
	var sl = document.getElementsByClassName('panel')[0].getElementsByTagName('a').length;
	for(var i=0;i<sl;i++){
		var newhref = document.getElementsByClassName('panel')[0].getElementsByTagName('a')[i].href.replace(/=([^\s]*)/,"="+spdz+"')");
		document.getElementsByClassName('panel')[0].getElementsByTagName('a')[i].href =newhref;
	} */	
	document.getElementsByTagName('iframe')[0].src= url;
}

